package com.codrim.cs.data.server.rpc.report;

import com.codrim.cs.data.rpc.dto.param.StatisticDataDTO;
import com.codrim.cs.data.server.dao.entity.StatCsAdvOfferDO;

/**
 * @author Liang.Zhuge on 14/08/2017.
 */
public class StatCsAdvOfferHelper extends AbstractStatDataHelper<StatCsAdvOfferDO> {

    @Override
    GroupKey[] groupKeys() {
        return new GroupKey[] {GroupKey.AdvertiserId, GroupKey.OfferId, GroupKey.Symbol,
            GroupKey.AdvAdvertiserManangerId, GroupKey.AdvAffiliateManagerId};
    }

    @Override
    protected StatCsAdvOfferDO initKeyFields(int sdate, StatisticDataDTO dayC) {
        return new StatCsAdvOfferDO(sdate, dayC);
    }
}
